package csdn.chouxiang.li02;

public class Circle extends Shape{

    private int r;

    public Circle(){}
    public Circle(int r,String name){
        super(name);
        this.r=r;
    }

    @Override
    public void getArea() {
        double area=3.14*r*r;
        System.out.println("【圆】的面积为："+area);
    }
        
}
